﻿<div id="dialogContent" class="js-frm container w95pr centerBlock"
data-ctrl='{"NewRec":1,"Source":"proc_Drivers","tblUpdate":"tblDrivers"}'>
      <div class='left w45pr'>
         <div class='ExtendIt leftBlock' data-ctrl='{"Field":"FirstName","id":"FirstName","labelType":"Left","classes":{"span":"w30pr","input":"w70pr"}}'>
         </div>
         <div class='ExtendIt leftBlock' data-ctrl='{"Field":"DateBorn","id":"DateBorn","labelType":"Left", "Type":"DateLess","classes":{"span":"w30pr","input":"w70pr"}}'>@*"Plugin":{"datepicker":{"maxDate":"0"}}  "classes":"UpdateField",*@
         </div>
         <div class='ExtendIt leftBlock' data-ctrl='{"Field":"Phone","id":"Phone","labelType":"Left","classes":{"span":"w30pr","input":"w70pr"}}'>
         </div>
      </div>
      <div class='right w45pr'>
         <div class='ExtendIt leftBlock' data-ctrl='{"Field":"LastName","id":"LastName","labelType":"Left","classes":{"span":"w30pr","input":"w70pr"}}'>
         </div>
		{{#if editItem}}
			{{#if dateIsEdited}}
				<div class="tr curvedBorderGroove pad7">
					<div class="col nine"><input type="text" id="dialogEndDateInput" {{bindAttr value="endDate"}} style="width:100%;margin-bottom:0!important;" placeholder="Nebedirba nuo.."/></div>
					<div class="col three"><a style="display:block;padding-top:4px;" {{action saveDate}}>Išsaugoti</a></div>
				</div>
			{{else}}
				{{#if endDate}}
						<div style="background-color:#EB5A44; font-weight:bolder;" class="tr curvedBorderGroove pad7">
							<div class="td w70pr" style="color:White; font-weight:bolder;"><span>Nebedirba nuo {{endDate}}</span></div>
							<div class="td w25pr" style="text-align:center;"><a {{action goToEditDate}} style="color:White; border:none;">Keisti</a></div>
						</div>
				{{else}}
						<div class="tr curvedBorderGroove pad7">
							<a {{action goToEditDate}} style="display:block;margin:0;width:100%;text-align:center;">Pažymėkite, jei darbuotojas nebedirba</a>
						</div>
				{{/if}}
			{{/if}}
		{{/if}}
      </div>
</div> 
{{view App.FormBottomView target="App.listAllController"}}
<div class="uploadDocsContainer borderTop pad-hor10" id="dialoguploadDocsContainer"></div>
